import request from '@/utils/request'

// 查询事件接报基本信息列表
export function listEventreceive(query) {
  return request({
    url: '/dyn/eventreceive/list',
    method: 'get',
    params: query
  })
}

// 查询事件接报基本信息详细
export function getEventreceive(reportid) {
  return request({
    url: '/dyn/eventreceive/' + reportid,
    method: 'get'
  })
}

// 新增事件接报基本信息
export function addEventreceive(data) {
  return request({
    url: '/dyn/eventreceive',
    method: 'post',
    data: data
  })
}

// 修改事件接报基本信息
export function updateEventreceive(data) {
  return request({
    url: '/dyn/eventreceive',
    method: 'put',
    data: data
  })
}

// 删除事件接报基本信息
export function delEventreceive(reportid) {
  return request({
    url: '/dyn/eventreceive/' + reportid,
    method: 'delete'
  })
}
